24. Reporting

Reporting

ND079 JPND C3 L2 A20 Reporting V3

Maven Site

Maven Reporting happens during a phase called site. This phase is not part of the default JAR lifecycle. That means you must run it manually using the command:

mvn site

The site phase generates documentation about your project. You can customize this behavior by adding additional plugins to the <reporting> element at the top level of the <project> element in your pom.

For example, you can run the JavaDoc plugin during the site phase by adding the following element to your pom:

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>3.2.0</version>
      </plugin>
    </plugins>
  </reporting>